package com.qf.fmw.dao.impl;

import com.qf.fmw.dao.MessageDao;
import com.qf.fmw.entity.bo.MessageBo;
import com.qf.fmw.entity.po.Message;
import com.qf.fmw.entity.po.User;
import com.qf.fmw.utils.DBManager;

import java.util.List;

public class MessageDaoImpl implements MessageDao {
    @Override
    public List<MessageBo> getUserById(int userId) {
        // 根据用户ID查询用户信息
        return DBManager.commonQuery("SELECT u_id,u_name,u_sex,u_email,m_registration_time FROM user u WHERE u_id = ?", MessageBo.class, userId);
    }
}

